//
//  BaseQWHttpRequest.m
//  117goFramework
//
//  Created by Yunhai.Wu on 15/7/30.
//  Copyright (c) 2015年 117go. All rights reserved.
//

#import "BaseQWHttpRequest.h"
#import "QWHttpEngineConfig.h"

@implementation BaseQWHttpRequest

-(NSString*) getURL {
    return nil;
}

-(BOOL) validateParams {
    return YES;
}

-(NSDictionary*) getHeaders {
    return nil;
}

-(NSDictionary*) getParams {
    return nil;
}

-(NSData*) getBodyData {
    return nil;
}

-(NSString*) getMethod {
    return HTTP_METHOD_GET;
}

-(long) getTimeoutDuration {
    return [[QWHttpEngineConfig sharedInstance] defaultTimeoutDuration];
}

-(NSDictionary*) getUploadFiles {
    return nil;
}

-(BOOL) existUploadFile {
    if ([[self getUploadFiles] count] > 0) {
        return YES;
    }
    return NO;
}

@end
